package com.example.aop.service.impl;

import com.example.aop.bo.UserBO;
import com.example.aop.service.Log;
import com.example.aop.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Override
    @Log("新增用户")
    public Boolean add(String userName) {
        return null;
    }

    @Override
    @Log("更新用户")
    public Boolean update(String userName, Long id) {
        return null;
    }

    @Override
    @Log("删除用户")
    public Boolean delUserName(Long id) {
        return null;
    }

    @Override
    @Log("用户查询列表")
    public List<UserBO> findUser(UserBO userBO) {
        return null;
    }
}

/*
class UserServiceImpl$$SpringCGLIB$$0 extends UserServiceImpl {

    public Boolean add(String userName) {
        // 前置
        super.add(userName);
        // 后置
        return null;
    }
}*/
